Component({
  data: {
    value: "/pages/home/home",
    list: [
      {
        value: "/pages/home/home",
        label: '卡查',
        icon: 'letters-a',
        ariaLabel: ''
      },
      {
        value: "/pages/lobby/lobby",
        label: '卡组广场',
        icon: 'letters-r',
        ariaLabel: ''
      },
      {
        value: "/pages/info/info",
        label: '最新资讯',
        icon: 'letters-e',
        ariaLabel: ''
      },
      {
        value: "/pages/trade/trade",
        label: '集换广场',
        icon: 'letters-n',
        ariaLabel: ''
      },
      {
        value: "/pages/user/user",
        label: '我的',
        icon: 'letters-a',
        ariaLabel: ''
      },
    ],
  },

  methods: {
    onChange(e: any) {
      wx.switchTab({
        url: e.detail.value,
      });
    },
  },
});
